package Border;

import SquarePackage.Direction;
import SquarePackage.Square;

/**
 * Class for a border for an empty space.
 * 
 * @author 	Brecht Reynders and Florian Hendrickx
 * @version	1.0
 */
public class EmptySpace extends Border {
	
	/**
	 * Initialize a new EmptySpace.
	 * @param	square
	 * 			the square for which the empty space is initialized.
	 * @effect	empty space is initialized
	 */
	public EmptySpace(Square square,Direction direction){
		this(square,null,direction);
	}
	public EmptySpace(Square square1, Square square2,Direction direction){
		super(square1,square2,direction);
	}
	
	/**
	 * Return whether this EmptySpace is isolated.
	 * @return false, because EmptySpace is always passthrough.
	 * 
	 */
	public boolean getIsolation(){
		return false;
	}
	/**
	 * this method returns the border which is preferred
	 * @return
	 */
	@Override
	public Border getHighest(Border border){
		if(border instanceof EmptySpace)
			return (EmptySpace)this;
		return border.getHighest(this);
	}
	

}
